import Vue from 'vue'
import Router from 'vue-router'
import login from '../components/login'
import home from '../components/WrapApp'
import unitmanagement from '../components/unitmanagement'
import industrylist from '../components/unitmanagement/industrylist'
import addcompany from '../components/unitmanagement/addcompany'
import notice from '../components/system/notice'
import feedfack from '../components/system/feedfack'
import trial from '../components/system/trial'
import divide from '../components/system/divide'
import userlist from '../components/userlist/index'
import adduser from '../components/userlist/adduser'
import filterkeylist from '../components/keyword/filterkeyword'
import addfilterkey from '../components/keyword/addfilterkey'
import keylist from '../components/keyword'
import addkey from '../components/keyword/addkey'
import noticelist from '../components/system/noticelist'
import adddivide from '../components/system/adddivide'


Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      redirect: '/login'
    },{
      path: '/login',
      component: login
    },{
      path: '/home',
      component: home,
      children:[
        {path:'',redirect:'unitmanagement'},
        {path:'unitmanagement',component:unitmanagement},
        {path:'addcompany',component:addcompany},
        {path:'industrylist',component:industrylist},
        {path:'notice',component:notice},
        {path:'feedfack',component:feedfack},
        {path:'trial',component:trial},
        {path:'divide',component:divide},
        {path:'userlist',component:userlist},
        {path:'keylist',component:keylist},
        {path:'addkey',component:addkey},
        {path:'filterkeylist',component:filterkeylist},
        {path:'addfilterkey',component:addfilterkey},
        {path:'noticelist',component:noticelist},
        {path:'adddivide',component:adddivide},
        {path:'adduser',component:adduser},
      ]
    }
  ]
})
